#{extends 'orgLead.html' /}
<ul>
	<table>
		<tr>
			<td><b>Department</b>
			</td>
			<td><b>Relation</b>
			</td>
			<td><b>Department</b>
		</tr>
		 #{list items: relations, as : 'relation'} 
		<tr>
		<form action = "@{Application.editRelationInDepartment()}" >
			<td><input type = "text"  disabled = "disabled" name = "depname" value = "${relation.department1.name}"></td>
			<td><select name = "relId" ><option value = "${relation.relation.id}">${relation.relation.relation}</option></select></td>
			<td><select name = "depId" ><option value = "${relation.department2.id}">${relation.department2.name}</option></select></td>
			<td><input type = "submit" value = "Edit"></td>
			</form>
		</tr>
		#{/list}
	</table>
</ul>
